﻿using Microsoft.Extensions.Logging;
using SuperSocket.ProtoBase;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace GpsServer
{
    public class MyFilterFactory : PipelineFilterFactoryBase<MyPackageInfo>
    {
        private readonly ILogger _logger;

        public MyFilterFactory(IServiceProvider serviceProvider, ILogger<MyFilterFactory> logger) : base(serviceProvider)
        {
            _logger = logger;
        }

        protected override IPipelineFilter<MyPackageInfo> CreateCore(object client)
        {
            return new MyPipelineFilter(_logger, 3);
        }
    }
}